#include <stdio.h>

int main()
{
    int n, a, b, c, x;
    scanf("%d", &n);
    a = 0;
    b = 0;
    c = 0;
    
    for(int i = 0; i < n; i ++)
    {
        scanf("%d ", &x);
        if(x > 0) c = c + 1;
        else if (x < 0) a = a + 1;
        else  b = b + 1;
    }
    printf("%d %d %d", a, b, c);
    
    return 0;
}